#ifndef LINKSETTINGS_H
#define LINKSETTINGS_H

#include <QSettings>

class LinkSettings: public QObject
{
    Q_OBJECT

    LinkSettings();
public:
    static LinkSettings* Inst(){
        static LinkSettings ls;
        return &ls;
    }

    void init(QString path = QString());

    QSettings *config() const;



    bool getDownloadDefaultDirOn() const;
    void setDownload_default_dir_on(bool getDownloadDefaultDirOn);

    QString getDownloadDefaultDir() const;
    void setDownload_default_dir(const QString &getDownloadDefaultDir);

    bool getDebugEnabled() const;
    int getLocalWebsocketPort() const;
    int getRemoteWebsocketPort() const;


    QString getTaskExecuteName() const;

protected:
    QSettings* m_set = nullptr;

    bool m_download_default_dir_on = false;
    QString m_download_default_dir = "";
};

#endif // LINKSETTINGS_H
